public class SellTicketsTester2 {
    public static void main(String[] args) {
        SellTickets2 s1 = new SellTickets2();
        SellTickets2 s2 = new SellTickets2();
        SellTickets2 s3 = new SellTickets2();

        s1.start();
        s2.start();
        s3.start();
    }
}

class SellTickets2 extends Thread {
    int numOfTickets = 200;

    public void run() {
//        int numOfTickets = 200;

        while (numOfTickets >= 0) {
            System.out.println(Thread.currentThread().getName() + " is selling " + numOfTickets--);
        }
    }
}